<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .list {
            display: flex;
            /*flex-direction: row-reverse;*/
            /*flex-direction: column-reverse;*/
            flex-wrap: wrap;
            margin: 40px auto;
            width: 600px;
            height: 300px;
            background-color: #e3d157;
        }

        .list > div {
            width: 100px;
            height: 100px;
            background-color: red;
        }
    </style>
</head>
<body>
<div class="list">
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <div>6</div>
    <div>7</div>
    <div>8</div>
    <div>9</div>
    <div>10</div>
    <div>11</div>
    <div>12</div>
</div>
</body>
</html>
